home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
026-050
/
scopedisk44
/
magicsqr
/
magicsquare.doc
< prev
next >
Wrap
Text File
|
1995-03-18
|
2KB
|
98 lines
MAGIC SQUARE
This is based on one of the games the electronic game MERLIN plays. The object
of the game is to select a sequence of pattern transformations which will result
in generating the magic square. The program starts by generating an initial
pattern on a 3 X 3 grid which is numbered from left to right and top to bottom
like this:
1 2 3 Grid Numbering (the actual *** ***
initial pattern would look *** ***
4 5 6 something like this:) ***
***
7 8 9 ***
***
The object then is to transform the initial pattern into this pattern which is
the magic square.
*** *** ***
*** *** ***
*** *** Magic Square
*** ***
*** *** ***
*** *** ***
Clicking your left mouse button on one of the nine blocks causes the pattern to
be transformed into a new pattern. Guess the correct sequence for the current
pattern and you generate the magic square. There is a mathematical solution
which guarantees a magic square in 9 or less transformations. If you would like
to discover the solution along these lines study up on your linear algebra,
specifically study vector and matrix transformation.
For the rest, you simply click away until you hit the magic sequence, or if you
find yourself totally frustrated there is hope. Just click on the SOLVE window
in the lower left hand corner and a solution will present itself. Be prepared to
memorize it as it won't stay on the screen long. Click on the sequence and you
will arrive at the magic square.
This program is written in basic and uses a little speech so have the Basic
Extras disk loaded.